package top.happylaishop.shop.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class UserDto implements Serializable {

    private Integer id;

    private Integer status;

    @NotBlank(message="用户名必填")
    private String username;

    @NotBlank(message="密码必填")
    @Length(min = 6, max = 36)
    private String password;

    private String email;

    private String phone;

    private String question;

    private String answer;

}